package com.example.aviwriter;

public class AVStreamDataFormat {
    static {
        System.loadLibrary("AviWriterLib");
    }

    public byte videoChannel;
    public byte audioChannel;
    public byte dataType;
    public byte reserve;
    public int  videoCodec;			//编码方式
    public int  videoBitrate;        //比特率, bps
    public short videoWidth;			//图像宽度
    public short videoHeight;			//图像高度
    public byte videoFrameRate;		//帧率, fps
    public byte videoColorDepth;		//should be 24 bits
    public byte videoFrameInterval;   //I帧间隔
    public byte videoReserve;
    public int audioSamplesRate;		//每秒采样
    public int audioBitrate;			//比特率, bps
    public short audioFormat;		//编码格式
    public short audioChannelNumber;	//音频通道号
    public short audioBlockAlign;		//块对齐, channelSize * (bitsSample/8)
    public short audioBitsPerSample;	//每采样比特数
    public short audioFrameInterval;	//帧间隔, 单位ms
    public short audioReserve;

    public  native void streamFormateFromData(byte[] data);
}
